﻿#include"GameLevelTwo.h"
#include"Sprite.h"
#include"Enemy.h"
#include"SupplyBank.h"
#include"WeaponBank.h"
GameLevelTwo::GameLevelTwo(QSize size, QObject* parent)
	:Fighting(size, parent)
{
	init();
}

void GameLevelTwo::init()
{
	//玩家
	m_Player->closeBlood();
	m_Player->setMaxBombNum(3);
	//玩家武器库
	m_Player->getWeaponBank()->setMaxBulletLevel(3);
	m_Player->getWeaponBank()->setBulletDemotion(30_s);
	m_Player->getWeaponBank()->setGuidedMissileCD(25_s);
	//敌机组
	m_enemy->setHpPlane(20, EnemyPlaneProperty::small);
	m_enemy->setPlaneType(EnemyPlaneProperty::small);
	m_enemy->setTimerPlane(2_s, 4_s, EnemyPlaneProperty::small);
	//补给包组
	m_SupplyBank->setSteplenSupply(100, Supply::Type::bullet);
	m_SupplyBank->setTimerSupply(10_s, 20_s, Supply::bullet);
	m_SupplyBank->setSteplenSupply(150, Supply::Type::bomb);
	m_SupplyBank->setTimerSupply(30_s, 40_s, Supply::bomb);
}
